package org.dualr.litelog.entity;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
/**
 * Link.java 
 * @author	DualR
 * @mail	dualrs@gmail.com
 * @site	http://mimaiji.appspot.com || http://www.mimaiji.com
 * @date	2009-8-3
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Link {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
	@Persistent
	private String name;
	@Persistent
	private String url;
	@Persistent
	private String title;
	@Persistent
	private String decription;
	@Persistent
	private String image;
	@Persistent
	private Long categoryId;
	@Persistent
	private String meta;
	@Persistent
	private String meta1;
	@Persistent
	private String meta2;
	@Persistent
	private String meta3;
	
	public Link(String name, String url, String title, String image, Long categoryId) {
		this.name = name;
		this.url = url;
		this.title = title;
		this.image = image;
		this.categoryId =categoryId;
	}
	public Link(Long id, String name, String url, String title, String image, Long categoryId) {
		this.id = id;
		this.name = name;
		this.url = url;
		this.title = title;
		this.image = image;
		this.categoryId =categoryId;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getDecription() {
		return decription;
	}
	public void setDecription(String decription) {
		this.decription = decription;
	}
	public String getImage() {
		return image;
	}
	public void setImage(String image) {
		this.image = image;
	}
	public Long getCategoryId() {
		return categoryId;
	}
	public void setCategoryId(Long categoryId) {
		this.categoryId = categoryId;
	}
	public String getMeta() {
		return meta;
	}
	public void setMeta(String meta) {
		this.meta = meta;
	}
	public String getMeta1() {
		return meta1;
	}
	public void setMeta1(String meta1) {
		this.meta1 = meta1;
	}
	public String getMeta2() {
		return meta2;
	}
	public void setMeta2(String meta2) {
		this.meta2 = meta2;
	}
	public String getMeta3() {
		return meta3;
	}
	public void setMeta3(String meta3) {
		this.meta3 = meta3;
	}
	

}
